package com.time.on.device.activity;

import android.app.Activity;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

public class BaseTimeActivity extends Activity {

	public static final String ERROR_TAG = "TimeOnDevice Error Log";
	public static final Integer HOURS_DEFAULT = 0;
	public static final Integer MINUTES_DEFAULT = 20;	
	public static final String TIME_DEFAULT = "00:20:00";// 20 minutes	
	public static final long INTERVAL_COUNT_DOWN = 1000l;// 1s
	
	protected boolean isNetworkConnected() {
		ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
		NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();
		if (networkInfo == null) {
			return false;
		} else {
			return true;
		}
	}

}
